import Vue from 'vue'
import VueRouter from 'vue-router'
// import Shouye from '../views/shouye.vue'
// import questionnaire from '../views/questionnaire.vue'
// import result from '../components/result.vue'
// import detail from '../views/detail.vue'
// import question from '../components/question.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: '/shouye'
  },
  {
    path: '/shouye',
    name: 'Shouye',
    // component: Shouye
    component: () => import( '../views/shouye.vue')/* webpackChunkName: "about" */
  },
  {
    path: '/questionnaire',
    name: 'questionnaire',
    // component: questionnaire
    component: () => import( '../views/questionnaire.vue')/* webpackChunkName: "about" */
  },
  {
    path: '/result',
    name: 'result',
    // component: result
    component: () => import( '../components/result.vue')
  },
  {
    path: '/detail',
    name: 'detail',
    // component: detail
    component: () => import( '../views/detail.vue')
  },
  
  // {
  //   path: '/question',
  //   name: 'question',
  //   component: question
  // }
]




const router = new VueRouter({
  routes
})

export default router